/*
 * Copyright (c) 2018-2999 九五云信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yami.shop.bean.dto.FlowAnalysisDto;
import com.yami.shop.bean.dto.SystemDto;
import com.yami.shop.bean.model.FlowUserAnalysis;
import com.yami.shop.bean.param.FlowAnalysisParam;
import com.yami.shop.bean.param.ProdAnalysisDataParam;
import com.yami.shop.bean.param.ProdAnalysisSurveyParam;
import com.yami.shop.common.util.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author YXF
 * @date 2020-07-17 09:50:13
 */
public interface FlowUserAnalysisMapper extends BaseMapper<FlowUserAnalysis> {

    List<FlowUserAnalysis> getUserAnalysisData(@Param("startTime") Date startTime, @Param("endTime") Date endTime);

    Integer countAddCartProdNum(@Param("param") ProdAnalysisSurveyParam param);

    List<FlowAnalysisDto> flowTrend(@Param("flowAnalysisParam") FlowAnalysisParam flowAnalysisParam);

    List<FlowAnalysisDto> flowSour(@Param("flowAnalysisParam") FlowAnalysisParam flowAnalysisParam);

    List<FlowAnalysisDto> getFlowAnalysisData(@Param("flowAnalysisParam") FlowAnalysisParam flowAnalysisParam, @Param("startTime") Date startTime);

    List<SystemDto> systemTypeNums(@Param("flowAnalysisParam") FlowAnalysisParam flowAnalysisParam);

    List<ProdAnalysisDataParam> countProdVisitorNum(@Param("param") ProdAnalysisSurveyParam param);

    List<ProdAnalysisDataParam> analysisSurvey(@Param("param") ProdAnalysisSurveyParam param);
}
